package com.sinosun.autotestmachine.tools.Collector;

import java.util.ArrayList;
import java.util.List;

import com.sinosun.autotestmachine.tools.proxy.callback.FileloadInfo;

public class FileloadCollector extends BaseCollector {
	private List<FileloadInfo> uploadInfos;
	
	public FileloadCollector() {
		super();
		uploadInfos = new ArrayList<FileloadInfo>();
	}
	
	public List<FileloadInfo> getFileInfos() {
		return this.uploadInfos;
	}
	
	public void addFileID(FileloadInfo fileInfo) {
		this.uploadInfos.add(fileInfo);
	}
	
	public void removeFileID(FileloadInfo fileInfo) {
		this.uploadInfos.remove(fileInfo);
	}
	
	public boolean containFileID(FileloadInfo fileInfo) {
		return this.uploadInfos.contains(fileInfo);
	}
}
